package com.beamfield.dao.device;

import com.beamfield.model.DevPurch;
import com.beamfield.model.DevPurchExample;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface DevPurchMapper {
    int deleteByExample(DevPurchExample example);

    int deleteByPrimaryKey(Long id);

    int insert(DevPurch record);

    int insertSelective(DevPurch record);

    List<DevPurch> selectByExample(DevPurchExample example);

    DevPurch selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") DevPurch record, @Param("example") DevPurchExample example);

    int updateByExample(@Param("record") DevPurch record, @Param("example") DevPurchExample example);

    int updateByPrimaryKeySelective(DevPurch record);

    int updateByPrimaryKey(DevPurch record);

    List<DevPurch> selectByProjectId(@Param("projectId") String projectId, @Param("name") String name, @Param("type") int type, @Param("offset") String offset, @Param("limit") String limit, @Param("demandid") String demandid, @Param("beamId") Long beamId,@Param("recordSource") String recordSource);


    long countByDemandid(@Param("projectId") String projectId, @Param("name") String name, @Param("type") int type, @Param("demandid") String demandid, @Param("beamId") Long beamId,@Param("recordSource") String recordSource);
}